package org.jarraiders.musiclibrary.server.service;

import java.util.List;
import java.util.UUID;

/**
 * @author AlteroStudio
 */
public interface EntityDAO<Entity> {

	List<Entity> getAllEntities();

	boolean addNewEntity(Entity entity);

	Entity getEntityById(String id);

	Entity getEntityById(UUID id);

	boolean updateEntity(Entity entity);

	boolean deleteEntity(Entity entity);
	
	void logMessage(byte messageType, String message);
}
